package com.service;

import com.mypg.CollectChapter;
import com.mypg.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectService {

    List<CollectChapter> selectCollectChapterByUser_id(int user_id,String question_class);
    List<Question> selectCollectQuestionByUser_id(int user_id, String question_class,String question_chapter);
    int selectCountByUser_idAndQuestion_id(int user_id,int question_id);
    int selectCountByUser_id(int user_id,String question_class, String question_chapter);

    void collect(int user_id, int question_id);

    void cancelCollect(int user_id,int question_id);
}
